package com.teach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName tb_user
 */
@TableName(value ="tb_user")
@Data
public class TbUser implements Serializable {
    /**
     * 用户表主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String uname;

    /**
     * 密码
     */
    private String upwd;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 真实姓名
     */

    private String rname;

    /**
     * 备注
     */
    private String content;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 创建时间
     */
    private Date creatTime;

    @TableField(exist = false)
    private List<TbRole> roleList;

    @TableField(exist = false)
    private List<TbUserRole> tbUserRoles;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}